<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('功能设置修改')" />
    <style type="text/css">
        .layui-input, .layui-textarea{width:calc(100% - 100px);}
        .layui-form-label{width:180px}
        .layui-form-select dl{margin-left:80px;min-width: calc(100% - 100px);}
        .layui-edge{margin-right:28px;}
    </style>
</head>
<body>
<form class="layui-form" id="form-dict-edit" style="padding: 16px 84px 16px 25px;">
<input type="hidden" id="guid" name="guid"  th:value="${moduleSet?.guid}">
<div>
	<div class="layui-form-item">
	  <label class="layui-form-label">功能名称：</label>
	  <div class="layui-input-block">
	    <input type="text" name="moduleAlias" id="moduleAlias" th:value="${moduleSet?.moduleAlias}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input layui-disabled" readonly>
	  </div>
	</div>
	<div class="layui-form-item layui-form-text">
	 <label class="layui-form-label">功能级别：</label>
	 	<div class="layui-input-block">
	 		<input type="text" name="moduleLevel" id="moduleLevel" th:value="${moduleSet?.moduleLevel}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input layui-disabled" readonly>
	  	</div>
	</div>
	<div class="layui-form-item layui-form-text">
	  <label class="layui-form-label">单号序列初始值：</label>
	  <div class="layui-input-block">
	  	<input type="text" name="moduleSequence" id="moduleSequence" th:value="${moduleSet}?${moduleSet.moduleSequence}:1001" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item layui-form-text">
	  <label class="layui-form-label">自定义单号：</label>
	  <div class="layui-input-block">
	  	<input type="text" name="moduleBid" id="moduleBid" th:value="${moduleSet?.moduleBid}" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item layui-form-text">
	  <label class="layui-form-label">使用单号连接符：</label>
	  <div class="layui-input-block">
	  	<input type="radio" name="moduleBidAddCon" value="0" title="否" checked>
	    <input type="radio" name="moduleBidAddCon" value="1" title="是" th:checked="${moduleSet?.moduleBidAddCon}">
	  </div>
	</div>
	<div class="layui-form-item layui-form-text">
	  <label class="layui-form-label">最长允许修改天数：</label>
	  <div class="layui-input-block">
	  	<input type="text" name="moduleChangeTimeLimit" id="moduleChangeTimeLimit" th:value="${moduleSet}? ${moduleSet.moduleChangeTimeLimit}:90" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
	<div class="layui-form-item layui-form-text">
	  <label class="layui-form-label">功能排序：</label>
	  <div class="layui-input-block">
	  	<input type="text" name="moduleOrder" id="moduleOrder" th:value="${moduleSet}?${moduleSet.moduleOrder}:1" lay-verify="required" autocomplete="off" placeholder="请输入" class="layui-input">
	  </div>
	</div>
</div>
</form>
<th:block th:include="include :: footer" />
<script type="text/javascript">
var prefix = ctx + "system/moduleset";
layui.use(['table','form','layer','jquery'], function () {
    var $ = layui.$,layer = layui.layer,form = layui.form,table = layui.table;
});
//提交调用的方法
function submitHandler() {
	$.operate.save(prefix + "/editpost", {'moduleSetItems':JSON.stringify([$.common.formToJSON('form-dict-edit')])});
}
</script>
</body>
</html>
